Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added unit tests for pv_creator.go #166

Merged
merged 2 commits into from
Jun 15, 2018
Merged

Added unit tests for pv_creator.go #166

merged 2 commits into from
Jun 15, 2018

Conversation

ewoutp
Copy link
Contributor

@ewoutp ewoutp commented Jun 8, 2018

Implements #162 (comment)

func TestCreateNodeClientMap(t *testing.T) {
GB := int64(1024 * 1024 * 1024)
foo := mocks.NewProvisioner("foo", 100*GB, 100*GB)
bar := mocks.NewProvisioner("bar", 100*GB, 100*GB)

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

trivial: my preference would be to have four different values instead of 100*GB for all. What if you happen to have one of parameters backwards some place in the code?

@ewoutp ewoutp merged commit d9db5e9 into master Jun 15, 2018
@ewoutp ewoutp removed the 4 - Review label Jun 15, 2018
@ewoutp ewoutp deleted the tests/storage-pv-creator branch June 15, 2018 05:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants